//
//  ChangePwdByPhoneRequest.m
//  DYLYJ
//
//  Created by JM on 15/11/23.
//  Copyright © 2015年 JM. All rights reserved.
//

#import "ChangePwdByPhoneRequest.h"

@implementation ChangePwdByPhoneRequest
- (void)didRealRequest {
    [[XPGWifiSDK sharedInstance] changeUserPasswordByCode:self.DY_phone code:self.DY_code newPassword:self.DY_newPassword];
}

- (void)XPGWifiSDK:(XPGWifiSDK *)wifiSDK didChangeUserPassword:(NSNumber *)error errorMessage:(NSString *)errorMessage {
    if(error.integerValue == XPGWifiError_NONE) {
        ChangePwdByPhoneResponse* response = [ChangePwdByPhoneResponse response];
        self.block(response,nil);
        
    }
    else
    {
        self.block(nil,[NSError dy_errorWithErrCode:error.integerValue errMessage:errorMessage]);
    }
    [super superHandelResponse];
}

@end

@implementation ChangePwdByPhoneResponse


@end